//
//  OpenAccountFooter.m
//  HaoDeCaiFu
//
//  Created by 郑开宏 on 2017/11/30.
//  Copyright © 2017年 郑开宏. All rights reserved.
//

#import "OpenAccountFooter.h"

@implementation OpenAccountFooter

+ (instancetype)OpenAccountFooter{
    return [[NSBundle mainBundle] loadNibNamed:@"OpenAccountFooter" owner:nil options:nil].firstObject;
}

- (void)awakeFromNib{
    [super awakeFromNib];
    [_threeBtn setBackgroundColor:ZKcolor(245, 245, 245)];
    NSString *strleft = @"基金销售服务由奕丰金融提供\n-基金有风险 投资需谨慎-";
    NSMutableAttributedString *attrStrT = [[NSMutableAttributedString alloc] initWithString:strleft];
    [attrStrT addAttribute:NSForegroundColorAttributeName
                     value:[UIColor lightGrayColor]
                     range:NSMakeRange(0, strleft.length)];
    [attrStrT addAttribute:NSFontAttributeName
                     value:[UIFont boldSystemFontOfSize:12]
                     range:NSMakeRange(0, strleft.length)];
    [attrStrT addAttribute:NSFontAttributeName
                     value:[UIFont boldSystemFontOfSize:14]
                     range:NSMakeRange(7, 4)];
    [attrStrT addAttribute:NSForegroundColorAttributeName
                     value:ZKcolor(33, 33, 33)
                     range:NSMakeRange(7, 4)];
    [_threeBtn setAttributedTitle:attrStrT forState:UIControlStateNormal];
    [_threeBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [_threeBtn.titleLabel setTextAlignment:NSTextAlignmentCenter];
    _threeBtn.titleLabel.lineBreakMode = 0;
}

@end
